package com.yyy.dm.order;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "dm_order")
public class DMOrder implements Serializable {

    @TableId(value = "id")
    private Long id;
    private String orderNo;//雪花算法生成
    private Long userId;//传过来的
    private Long schedulerId;//传过来的
    private Long itemId;//穿过来的
    private String itemName;//得去查询
    private String wxTradeNo;//没
    private String aliTradeNo;//没
    private Integer orderType;//添加默认为0
    private String payType;//默认空着
    private Integer totalCount;//算出来的
    private Long area;//不知道是个啥
    private Integer sourceType;//传过来的
    private Integer isNeedInvoice;//传过来的
    private Integer invoiceType;//传过来的
    private String invoiceHead;//传过来的
    private String invoiceNo;//传过来的
    private Integer isNeedInsurance;//传过来的
    private Double totalAmount;//计算的
    private Double insuranceAmount;//固定20
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;

}
